package mapper;

import entity.Product;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer pid);
    List<Product> selectByType(String type);
    List<Product> getAllProduct();
    List<String> getAllType();
    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
}